<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<script language="javascript" type="text/javascript" src="${ctx }/js/checkbox.js"></script>
<script src="${ctx}/js/jquery.min.js" type="text/javascript"></script>
<script src="${ctx}/js/page.js" type="text/javascript"></script>
<script language="javascript">
function delcfm(){
	if (confirm("确定删除？")){
				return true;
		}else{
			return false;
	}
}

function del(){
	if(confirm("确定删除？")){
		var ids = document.getElementsByName("ids");
		var id = "";
		for(var i = 0; i < ids.length; i++){
			if(ids[i].checked){
				id=id+ids[i].value+",";  
			}
		}
		$.post("${ctx}/admin/examinee-admin!deleteAll.action", "ids="+id ,function callback(text){
	           		history.go(0);
	     	});
    }
}


</script>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>

  </head>
  
  <body>
  <s:if test="hasActionMessages()">      
         <s:iterator value="actionMessages">      
             <script language="JavaScript">      
                 alert("<s:property escape="false"/>");     
             </script>      
         </s:iterator>      
      </s:if> 
	<form action="examinee-admin.action" method="post">
  <fieldset>
    <legend></legend>
    考生号: <input type="text" name="searchTicket" />
    身份证: <input type="text" name="searchIdentity" />
    
    <input type="hidden" name="subject" value="${subject }"/> 
	<input type="submit" value="搜索" />
	（请输入正确的考生号或身份证号进行搜索）
  </fieldset>
</form>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${ctx }/images/tb.gif" width="14" height="14" /></div></td>
                <td width="85%" valign="bottom">
                	<span class="STYLE1">
                		<s:if test="subject==1">高水平运动员报名列表</s:if><s:if test="subject==2">高水平运动员准考证列表</s:if>
                	</span></td>
                	<td><div align="right"><span class="STYLE1">
			  			<a href="javascript:;" style="text-decoration:none;color:#fff" onClick="del()" ><img src="${ctx}/images/del.gif" width="10" height="10" /> 批量删除    &nbsp;</a>
			  			</span></div></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
			  <!--<a href="#" style="text-decoration:none;color:#fff" onClick="return delcfm()" ><img src="images/del.gif" width="10" height="10" /> 批量删除    &nbsp;</a> -->
			  </span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
	<form id="mainForm" action="${ctx}/admin/examinee-admin.action" method="get">
	<input type="hidden" name="subject" value="${subject }"/> 
	<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
	<s:if test="subject==1">
	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10"><input type="checkbox" name="select" id="selectAll" onclick="this.value=check(this.form.select)" />全选</span></div></td>
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">序号</span></div></td>
		<td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">考生号</span></div></td>
		<td width="13%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">身份证</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">科类</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">运动等级</span></div></td>
		<td width="7%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">运动项目</span></div></td>
		<td width="12%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">注册时间</span></div></td>
		<td width="12%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">编辑时间</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
      <s:iterator value="page.result" status="status">
      <tr>
        <td height="20" bgcolor="#FFFFFF"><div align="center">
			<input type="checkbox" class="select" name="ids" id="select" value="${id}"/>
        </div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">${status.index+1 +(page.pageNo-1)*page.pageSize}</span></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${ticket}</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${identity }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${type}</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${level }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${item }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${editTime}</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${inputTime}</div></td>
        <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21"><a style="cursor:pointer" onclick="window.parent.parent.open('examinee-admin!input.action?id=${id}')" >查看</a>  | <a href="examinee-admin!delete.action?id=${id }&subject=${subject}" onClick="return delcfm()">删除</a></div></td>
      </tr>
      </s:iterator>
	  
    </table>
    </s:if>
    <s:if test="subject==2">
    	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
      	<td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10"><input type="checkbox" name="select" id="selectAll" onclick="this.value=check(this.form.select)" />全选</span></div></td>
        <td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">序号</span></div></td>
		<td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">考生号</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">姓名</span></div></td>
		<td width="8%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">性别</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">测试项目</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">生源省份</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">注册时间</span></div></td>
		<td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
      <s:iterator value="page.result" status="status">
      <tr>
      	<td height="20" bgcolor="#FFFFFF"><div align="center">
          <input type="checkbox" class="select" name="ids" id="select" value="${id}"/>
        </div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">${status.index+1 +(page.pageNo-1)*page.pageSize}</span></div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${ticket}</div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${name }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${gender }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${item }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${province }</div></td>
		<td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${inputTime }</div></td>
        <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21"><a href="examinee-admin!detail.action?id=${id }">修改</a>  | <a href="examinee-admin!delete.action?id=${id }&subject=${subject}" onClick="return delcfm()">删除</a>  | 
        <a  style="cursor:pointer" onclick="window.parent.parent.open('examinee-admin!print.action?id=${id }')" >打印</a></div></td>
      </tr>
      </s:iterator>
    </table>
    </s:if>
    	<div class="next-page tc f14 mt40 pb20" align="center">
					第${page.pageNo}页, 共${page.totalPages}页
			<a href="javascript:jumpPage(1)">首页</a>
			<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
			<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
			<a href="javascript:jumpPage(${page.totalPages})">末页</a>
				</div>
	</form>
	</td>
  </tr>

</table>
	<button onclick="window.location.href='examinee-admin!excelOut.action'">导出所有运动员信息</button>
  </body>
</html>
